package com.market.controller;

import com.market.common.vo.ResponseResult;
import com.market.entity.OnMaven;
import com.market.service.OnMavenService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/onmaven")
public class OnMavenController {
    //查询出库单
    @Resource
    OnMavenService onMavenService;
    @GetMapping("/getOnMaven")
    public ResponseResult<List<OnMaven>> getOnMaven(){
        return ResponseResult.success(onMavenService.findOnMaven());
    }
}
